const mongoose = require('../db');
const Schema = mongoose.Schema;

const schema = new Schema({
  productid: { type: String },
  type: { type: String }, // 鲜花、永生花、蛋糕、礼品、巧克力
  imgurl: { type: Array },
  product_info: { type: String },
  product_dsc: { type: String },
  tag: { type: String },
  now_price: { type: Number },
  old_price: { type: Number },
  sells: { type: Number },
  says: { type: String },
  imgs: { type: Array },
  date: { type: String },
  typename: { type: String }
})

// 生成一个集合 集合名称为 pros
module.exports = mongoose.model('Product', schema);